//tealium universal tag - utag.1054 ut4.0.202609141230, Copyright 2026 Tealium.com Inc. All Rights Reserved. (function(f){if(f.fbq)return;var n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments);};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version="2.0";n.queue=[];n.agent="tmtealium";})(window);try{(function(id,loader){var u={"id":id},md5;utag.o[loader].sender[id]=u;utag.globals=utag.globals||{};if(utag.ut===undefined){utag.ut={};} var match=/ut\d\.(\d*)\..*/.exec(utag.cfg.v);if(utag.ut.loader===undefined||!match||parseInt(match[1])<41){u.loader=function(o,a,b,c,l,m){utag.DB(o);a=document;if(o.type=="iframe"){m=a.getElementById(o.id);if(m&&m.tagName=="IFRAME"){b=m;}else{b=a.createElement("iframe");}o.attrs=o.attrs||{};utag.ut.merge(o.attrs,{"height":"1","width":"1","style":"display:none"},0);}else if(o.type=="img"){utag.DB("Attach img: "+o.src);b=new Image();}else{b=a.createElement("script");b.language="javascript";b.type="text/javascript";b.async=1;b.charset="utf-8";}if(o.id){b.id=o.id;}for(l in utag.loader.GV(o.attrs)){b.setAttribute(l,o.attrs[l]);}b.setAttribute("src",o.src);if(typeof o.cb=="function"){if(b.addEventListener){b.addEventListener("load",function(){o.cb();},false);}else{b.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){this.onreadystatechange=null;o.cb();}};}}if(o.type!="img"&&!m){l=o.loc||"head";c=a.getElementsByTagName(l)[0];if(c){utag.DB("Attach to "+l+": "+o.src);if(l=="script"){c.parentNode.insertBefore(b,c);}else{c.appendChild(b);}}}};}else{u.loader=utag.ut.loader;} if(utag.ut.typeOf===undefined){u.typeOf=function(e){return({}).toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase();};}else{u.typeOf=utag.ut.typeOf;} if(utag.ut.md5===undefined){md5=function(t,n){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!=typeof global&&global.crypto&&(r=global.crypto),!r&&"function"==typeof require)try{r=require("crypto")}catch(t){}var e=function(){if(r){if("function"==typeof r.getRandomValues) try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(n){var r;return t.prototype=n,r=new t,t.prototype=null,r}}(),o={},s=o.lib={},a=s.Base={extend:function(t){var n=i(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=null!=n?n:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var n=this.words,r=t.words,e=this.sigBytes,i=t.sigBytes;if(this.clamp(),e%4)for(var o=0;o>>2]>>>24-o%4*8&255;n[e+o>>>2]|=s<<24-(e+o)%4*8}else for(o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var n=this.words,r=this.sigBytes;n[r>>>2]&=4294967295<<32-r%4*8,n.length=t.ceil(r/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],r=0;r>>2]>>>24-i%4*8&255;e.push((o>>>4).toString(16)),e.push((15&o).toString(16))}return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new c.init(r,n/2)}},h=u.Latin1={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i>>2]>>>24-i%4*8&255;e.push(String.fromCharCode(o))} return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new c.init(r,n)}},d=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},l=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var r,e=this._data,i=e.words,o=e.sigBytes,s=this.blockSize,a=o/(4*s),u=(a=n?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,f=t.min(4*u,o);if(u){for(var h=0;h>>24)|4278255360&(i<<24|i>>>8)} var o=this._hash.words,a=t[n+0],d=t[n+1],l=t[n+2],p=t[n+3],y=t[n+4],g=t[n+5],w=t[n+6],v=t[n+7],_=t[n+8],m=t[n+9],B=t[n+10],x=t[n+11],b=t[n+12],S=t[n+13],H=t[n+14],z=t[n+15],C=o[0],M=o[1],A=o[2],D=o[3];C=c(C,M,A,D,a,7,s[0]),D=c(D,C,M,A,d,12,s[1]),A=c(A,D,C,M,l,17,s[2]),M=c(M,A,D,C,p,22,s[3]),C=c(C,M,A,D,y,7,s[4]),D=c(D,C,M,A,g,12,s[5]),A=c(A,D,C,M,w,17,s[6]),M=c(M,A,D,C,v,22,s[7]),C=c(C,M,A,D,_,7,s[8]),D=c(D,C,M,A,m,12,s[9]),A=c(A,D,C,M,B,17,s[10]),M=c(M,A,D,C,x,22,s[11]),C=c(C,M,A,D,b,7,s[12]),D=c(D,C,M,A,S,12,s[13]),A=c(A,D,C,M,H,17,s[14]),C=u(C,M=c(M,A,D,C,z,22,s[15]),A,D,d,5,s[16]),D=u(D,C,M,A,w,9,s[17]),A=u(A,D,C,M,x,14,s[18]),M=u(M,A,D,C,a,20,s[19]),C=u(C,M,A,D,g,5,s[20]),D=u(D,C,M,A,B,9,s[21]),A=u(A,D,C,M,z,14,s[22]),M=u(M,A,D,C,y,20,s[23]),C=u(C,M,A,D,m,5,s[24]),D=u(D,C,M,A,H,9,s[25]),A=u(A,D,C,M,p,14,s[26]),M=u(M,A,D,C,_,20,s[27]),C=u(C,M,A,D,S,5,s[28]),D=u(D,C,M,A,l,9,s[29]),A=u(A,D,C,M,v,14,s[30]),C=f(C,M=u(M,A,D,C,b,20,s[31]),A,D,g,4,s[32]),D=f(D,C,M,A,_,11,s[33]),A=f(A,D,C,M,x,16,s[34]),M=f(M,A,D,C,H,23,s[35]),C=f(C,M,A,D,d,4,s[36]),D=f(D,C,M,A,y,11,s[37]),A=f(A,D,C,M,v,16,s[38]),M=f(M,A,D,C,B,23,s[39]),C=f(C,M,A,D,S,4,s[40]),D=f(D,C,M,A,a,11,s[41]),A=f(A,D,C,M,p,16,s[42]),M=f(M,A,D,C,w,23,s[43]),C=f(C,M,A,D,m,4,s[44]),D=f(D,C,M,A,b,11,s[45]),A=f(A,D,C,M,z,16,s[46]),C=h(C,M=f(M,A,D,C,l,23,s[47]),A,D,a,6,s[48]),D=h(D,C,M,A,v,10,s[49]),A=h(A,D,C,M,H,15,s[50]),M=h(M,A,D,C,g,21,s[51]),C=h(C,M,A,D,b,6,s[52]),D=h(D,C,M,A,p,10,s[53]),A=h(A,D,C,M,B,15,s[54]),M=h(M,A,D,C,d,21,s[55]),C=h(C,M,A,D,_,6,s[56]),D=h(D,C,M,A,z,10,s[57]),A=h(A,D,C,M,w,15,s[58]),M=h(M,A,D,C,S,21,s[59]),C=h(C,M,A,D,y,6,s[60]),D=h(D,C,M,A,x,10,s[61]),A=h(A,D,C,M,l,15,s[62]),M=h(M,A,D,C,m,21,s[63]),o[0]=o[0]+C|0,o[1]=o[1]+M|0,o[2]=o[2]+A|0,o[3]=o[3]+D|0},_doFinalize:function(){var n=this._data,r=n.words,e=8*this._nDataBytes,i=8*n.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(e/4294967296),s=e;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n.sigBytes=4*(r.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var f=c[u];c[u]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return a},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,n,r,e,i,o,s){var a=t+(n&r|~n&e)+i+s;return(a<>>32-o)+n}function u(t,n,r,e,i,o,s){var a=t+(n&e|r&~e)+i+s;return(a<>>32-o)+n}function f(t,n,r,e,i,o,s){var a=t+(n^r^e)+i+s;return(a<>>32-o)+n}function h(t,n,r,e,i,o,s){var a=t+(r^(n|~e))+i+s;return(a<>>32-o)+n}n.MD5=i._createHelper(a),n.HmacMD5=i._createHmacHelper(a)}(Math));}else{md5=utag.ut.md5;} u.ev={"view":1,"link":0};u.scriptrequested=false;u.pixels_initialized={};u.clearEmptyKeys=function(object){for(var key in object){if(object[key]===""||object[key]===undefined||object[key]===null||object[key]===NaN||(utag.ut.typeOf(object[key])==="array"&&object[key].length===0)){delete object[key];}} return object;};u.generateEventIdHelper=function(event,data,lookup_id,pixelID){var hash_input=(data["tealium_timestamp_epoch"]||(function(){var d=new Date();return Math.floor(d.getTime()/1000);})())+"-"+lookup_id+"-"+event+"-"+id;if(pixelID){hash_input+="-"+pixelID;} return md5.MD5(hash_input).toString();};u.generateEventId=function(event_name,data_layer,lookup_id,pixelID){var event_id="";if(u.toBoolean(u.data.generate_event_id)){var event_name_prefix="fb_event_id";var event_name_normalized=event_name.replace(/ /g,"_");if(data_layer.tealium_random){event_id=u.data.event_id||u.generateEventIdHelper(event_name,data_layer,lookup_id,pixelID);if(window.utag.globals[data_layer.tealium_random]){window.utag.globals[data_layer.tealium_random][event_name_prefix+"_"+event_name_normalized]=event_id;window.utag.globals[data_layer.tealium_random][event_name_prefix+"_"+event_name_normalized+"_"+u.id]=event_id;}}else{utag.DB("send:1054: Event ID Generation is enabled, but the tealium_random value was not found in the data layer. No event ID was generated for "+event_name);} window.utag.globals[lookup_id][event_name_prefix+"_"+event_name_normalized]=event_id;} return event_id;};u.isEmptyObject=function(object){if(typeof Object.keys==="function"){if(Object.keys(object).length===0){return true;}else{return false;}}else{var key;for(key in object){if(object.hasOwnProperty(key)){return false;}} return true;}};u.toBoolean=function(val){val=val||"";return val===true||val.toLowerCase()==="true"||val.toLowerCase()==="on";};u.map_func=function(arr,obj,item){var i=arr.shift();obj[i]=obj[i]||{};if(arr.length>0){u.map_func(arr,obj[i],item);}else{obj[i]=item;}};u.processAMData=function(data){var processed_data={},key;for(key in data){if(data.hasOwnProperty(key)){if(key==="ph"||key==="ge"||key==="db"||key==="zp"){key=key.replace(/\s/g,"").toLowerCase();} if(key==="ph"){data[key]=data[key].replace(/[^\d]/g,"");}else if(key==="ge"){if(data[key]!=="m"&&data[key]!=="f"){utag.DB(u.id+": Advanced Matching property 'ge' in wrong format. Removed from init call");continue;}}else if(key==="db"){if(data[key].length!==8){utag.DB(u.id+": Advanced Matching property 'db' is not the correct length. Removed from init call");continue;}}else if(key==="zp"){data[key]=data[key].replace(/[^\d]/g,"");if(data[key].length>5){utag.DB(u.id+": Advanced Matching property 'zp' is too long. Removed from init call");continue;}}} processed_data[key]=data[key];} return u.clearEmptyKeys(processed_data);};u.PAGE_VIEW_EVENT="PageView";u.getEventContentsObject=function(event_data,event_name){if(!event_data.content_ids){return null;} var delivery_category=event_name==='Purchase'?event_data.delivery_category:'';return event_data.content_ids.map(function(content_id,index){return u.clearEmptyKeys({id:content_id,quantity:parseInt(u.data.product_quantity[index]),item_price:parseFloat(u.data.product_unit_price[index]),delivery_category:delivery_category})})} u.map={"fb_event:search":"Search","fb_event:initiate_checkout":"InitiateCheckout","fb_event:custom_cart":"custom_cart","fb_event:purchase":"Purchase","fb_event:view_content":"ViewContent","fb_event:searchAndViewContent":"ViewContent,Search","_sm_1054_2":"Purchase.content_type,Search.content_type,InitiateCheckout.content_type,ViewContent.content_type,custom_cart.content_type","booking_room_quantity":"Purchase.num_items,InitiateCheckout.num_items,custom_cart.num_items","search_value":"Search.search_string,ViewContent.search_string","cp._fbp":"fbp","cp._fbc":"fbc","booking_check_in_hyphen":"Purchase.checkin_date,Search.checkin_date,InitiateCheckout.checkin_date,custom_cart.checkin_date,ViewContent.checkin_date","booking_check_out_hyphen":"InitiateCheckout.checkout_date,Purchase.checkout_date,Search.checkout_date,ViewContent.checkout_date,custom_cart.checkout_date","page_section":"InitiateCheckout.page_section,Purchase.page_section,ViewContent.page_section,Search.page_section,custom_cart.page_section","page_sub_section":"InitiateCheckout.page_sub_section,Purchase.page_sub_section,Search.page_sub_section,ViewContent.page_sub_section,custom_cart.page_sub_section","user_name":"am.fn","user_surname":"am.ln","_sm_1054_13":"generate_event_id","va.properties.25152":"am.ph","order_id":"order_id,Purchase.order_id","booked_total_price":"Purchase.value","booking_total_price":"InitiateCheckout.value,custom_cart.value","booking_total_currency":"ViewContent.currency,InitiateCheckout.currency,custom_cart.currency","booked_total_currency":"Purchase.currency","tealium_visitor_id":"am.external_id","product_id":"Purchase.content_ids,InitiateCheckout.content_ids,Purchase.product_id,InitiateCheckout.product_id","user_country_name":"InitiateCheckout.country,custom_cart.country,Purchase.country,ViewContent.country,Search.country","search_check_in_hyphen":"Search.checkin_date","search_check_out_hyphen":"Search.checkout_date","search_adults":"Search.num_adults","search_children":"Search.num_children","user_selected_currency":"Search.currency","user_email_sha256":"am.em"};u.extend=[function(a,b){try{b['_sm_1054_13']=true;}catch(e){utag.DB(e);} try{b['_sm_1054_2']="hotel";}catch(e){utag.DB(e);}},function(a,b){try{if(1){if((b.page_sub_section&&b['page_sub_section'].includes('step 0'))||(b.page_section&&b['page_section'].includes('offers'))){b.fb_event="search"} if(b.page_section&&b['page_section'].includes('hotel')&&b.page_sub_section&&b['page_sub_section'].includes('home')){b.fb_event="searchAndViewContent"} if(b.page_sub_section&&b['page_sub_section'].includes('extra selection')){b.fb_event="custom_cart"} if(b.ecommerce_action&&b['ecommerce_action'].includes('purchase')){b.fb_event="purchase"} if(b.page_sub_section&&b['page_sub_section'].includes('payment details')){b.fb_event="initiate_checkout"} if((b.page_sub_section&&b['page_sub_section'].includes('room selection'))||(b.pagecategorization&&b['pagecategorization'].includes('hotels list>results'))){b.fb_event="view_content"}}}catch(e){utag.DB(e)}}];u.send=function(a,b){if(u.ev[a]||u.ev.all!==undefined){utag.DB("send:1054");utag.DB(b);var c,d,e,f,h,i,j,k,l,key,pixel_list,event,base_tracking_type="track",event_data={},event_id="",event_name="",event_tracking_type="",fb_param="",has_purchase=false,lookup_id="",tracking_queue=[],standard_events_lookup={"AddPaymentInfo":{"fb_params":["content_category","content_ids","contents","currency","value"]},"AddToCart":{"fb_params":["content_ids","content_name","content_type","contents","currency","value"]},"AddToWishlist":{"fb_params":["content_name","content_category","content_ids","contents","currency","value"]},"CompleteRegistration":{"fb_params":["content_name","currency","status","value"]},"Contact":{"fb_params":[]},"CustomizeProduct":{"fb_params":[]},"Donate":{"fb_params":[]},"FindLocation":{"fb_params":[]},"InitiateCheckout":{"fb_params":["content_category","content_ids","contents","currency","num_items","value"]},"Lead":{"fb_params":["content_category","content_name","currency","value"]},"PageView":{"fb_params":[]},"Purchase":{"fb_params":["content_ids","content_name","content_type","contents","num_items","currency","value","delivery_category"],"req_params":["currency","value"]},"Schedule":{"fb_params":[]},"Search":{"fb_params":["content_type","content_category","content_ids","contents","currency","search_string","value"]},"StartTrial":{"fb_params":["currency","predicted_ltv","value"]},"SubmitApplication":{"fb_params":[]},"Subscribe":{"fb_params":["currency","predicted_ltv","value"]},"ViewContent":{"fb_params":["content_ids","content_name","content_type","contents","currency","value"]}},standard_params_lookup={"content_category":function(){return u.data.content_category||u.data.product_category;},"content_name":function(){return u.data.content_name||u.data.product_name;},"content_ids":function(){return u.data.content_ids||u.data.product_id;},"content_type":function(){return u.data.content_type;},"contents":function(){return u.data.contents;},"currency":function(){return u.data.currency||u.data.order_currency;},"delivery_category":function(){return u.data.delivery_category;},"num_items":function(){var i,num;if(typeof u.data.num_items!=="undefined"&&u.data.num_items!==""){num=u.data.num_items;}else{if(u.data.calc_items===true||u.data.calc_items==="true"){num=0;for(i=0;i0){val=u.data.product_unit_price[0];}else if(event==="Purchase"){val=u.data.order_subtotal;}} if(typeof val!=="undefined"&&val!==""){val=parseFloat(val);} return val;}};u.processing_options=function(){var key,ldu_option;for(key in u.data.lmt_data.ldu_types){if(u.data.lmt_data.ldu_types[key]==="true"||u.data.lmt_data.ldu_types[key]===true){ldu_option=key;}} if(u.data.lmt_data.use_ldu==="true"||u.data.lmt_data.use_ldu===true){switch(ldu_option){case"california":u.data.lmt_data.country=1;u.data.lmt_data.state=1000;break;case"geolocate":u.data.lmt_data.country=0;u.data.lmt_data.state=0;break;default:break;} fbq("dataProcessingOptions",u.data.lmt_data.prcs_optns,u.data.lmt_data.country,u.data.lmt_data.state);}else if(u.data.lmt_data.use_ldu==="false"||u.data.lmt_data.use_ldu===false){fbq("dataProcessingOptions",[]);}} u.data={"base_url":"https://connect.facebook.net/en_US/fbevents.js","advanced_matching":"true","generate_event_id":"true","pixel_id":"2392040277476585","autoConfig":true,"auto_page_view":"","calc_items":true,"consent":"","disablePushState":false,"track_single":false,"lmt_data":{"prcs_optns":["LDU"],"country":0,"state":0},useContentsObject:false,event_id:'',"order_id":"","order_subtotal":"","order_currency":"","delivery_category":"","product_id":[],"product_name":[],"product_category":[],"product_unit_price":[],"product_quantity":[],"content_category":"","content_ids":"","content_name":"","content_type":"","contents":null,"currency":"","num_items":"","predicted_ltv":"","search_string":"","status":"","value":"","movieref":"","availability":"","body_style":"","checkin_date":"","checkout_date":"","city":"","country":"","departing_arrival_date":"","departing_departure_date":"","destination_airport":"","destination_ids":"","drivetrain":"","exterior_color":"","fuel_type":"","hotel_score":"","lease_end_date":"","lease_start_date":"","listing_type":"","make":"","model":"","neighborhood":"","num_adults":"","num_children":"","num_infants":"","origin_airport":"","postal_code":"","preferred_baths_range":"","preferred_beds_range":"","preferred_num_stops":"","preferred_price_range":"","price":"","property_type":"","region":"","returning_arrival_date":"","returning_departure_date":"","state_of_vehicle":"","transmission":"","travel_class":"","travel_end":"","travel_start":"","user_score":"","year":"","am":{},"store_data":{},"custom":{},"event_queue":[]};for(c=0;c-1){u.map_func(e[f].split("."),u.data,b[d]);}else{u.data.custom[e[f]]=b[d];}}}else{h=d.split(":");if(h.length===2&&b[h[0]]===h[1]){if(u.map[d]){u.data.event_queue=u.data.event_queue.concat(u.map[d].split(","));} }else if(h.length===3&&b[h[0]]===h[1]){if(u.map[d]){u.data[h[2]]=u.map[d];}}}} utag.DB("send:1054:MAPPINGS");utag.DB(u.data);if(!u.data.pixel_id){utag.DB(u.id+": Tag not fired: Required attribute 'pixel_id' not populated.");return;} if(u.data.consent==="grant"||u.data.consent==="revoke"){fbq("consent",u.data.consent);} if(u.data.disablePushState==="true"||u.data.disablePushState===true){fbq.disablePushState=true;} if(u.toBoolean(u.data.generate_event_id)){lookup_id=b.tealium_random;if(typeof lookup_id!=="undefined"){utag.globals[lookup_id]=window.utag.globals[lookup_id]||{};}else{lookup_id=Math.random().toFixed(16).substring(2);utag.DB("send:1054: The tealium_random variable was not defined. Any Facebook event IDs generated will not be collected by Tealium Collect. Please ensure you are using the latest version of utag.js to generate a tealium_random value.");}} if(u.data.track_single===true||u.data.track_single==="true"){base_tracking_type+="Single";} u.data.order_currency=u.data.order_currency||b._ccurrency||"";u.data.order_id=u.data.order_id||b._corder||"";u.data.order_subtotal=u.data.order_subtotal||b._csubtotal||"";if(u.data.product_category.length===0&&b._ccat!==undefined){u.data.product_category=b._ccat.slice(0);} if(u.data.product_id.length===0&&b._cprod!==undefined){u.data.product_id=b._cprod.slice(0);} if(u.data.product_name.length===0&&b._cprodname!==undefined){u.data.product_name=b._cprodname.slice(0);} if(u.data.product_quantity.length===0&&b._cquan!==undefined){u.data.product_quantity=b._cquan.slice(0);} if(u.data.product_unit_price.length===0&&b._cprice!==undefined){u.data.product_unit_price=b._cprice.slice(0);} if(u.data.auto_page_view===""){u.data.auto_page_view="true";} if(a==="view"&&u.toBoolean(u.data.auto_page_view)){u.data.event_queue.push(u.PAGE_VIEW_EVENT);} for(i=0;i0){event_data[key]=parseFloat(u.data[event_name][key][0]);}else{event_data[key]=u.data[event_name][key];}}}} if(event_name==="Purchase"){for(key in standard_events_lookup[event_name].req_params){if(standard_events_lookup[event_name].req_params.hasOwnProperty(key)){if(!event_data[standard_events_lookup[event_name].req_params[key]]){utag.DB("send:1054:"+event_name+" tracking: The required parameter '"+standard_events_lookup[event_name].req_params[key]+"' is empty. ");continue;}}}} if(u.toBoolean(u.data.useContentsObject)&&!event_data.contents){event_data.contents=u.getEventContentsObject(event_data,event_name)} if(u.data.store_data&&!u.isEmptyObject(u.data.store_data)){event_data.store_data=u.clearEmptyKeys(u.data.store_data);} tracking_queue.push(u.clearEmptyKeys({"event_tracking_type":event_tracking_type,"event_name":event_name,"event_data":event_data}));} pixel_list=u.data.pixel_id.split(/\s*,\s*/);for(k=0;k(()=>{"use strict";var t={d:(r,e)=>{for(var n in e)t.o(e,n)&&!t.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:e[n]})},o:(t,r)=>Object.prototype.hasOwnProperty.call(t,r),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},r={};t.r(r),t.d(r,{getFbc:()=>S,getFbp:()=>k,processAndCollectAllParams:()=>C,processAndCollectParams:()=>R});var e=999999999,n=7776e6,o="fb",i="fbclid",a="_fbc",u="fbc",c="_fbp",l="fbp",f=4,s=5,h="Bg",p=["AQ","Ag","Aw","BA","BQ","Bg"];function y(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e-1,a.userAgent.match("CriOS")||null==i||"Google Inc."!==u||!1!==c||!1!==l?"":"SameSite=Lax;"))+"path=/"}catch(t){throw new Error("Fail to write cookie: "+t.message)}}function b(t){var r=g(t);return"string"!=typeof r||""===r?null:function(t){var r=t.split(".");if(r.length!==f&&r.length!==s)return null;var e,n,i=(n=5,function(t){if(Array.isArray(t))return t}(e=r)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,n)||function(t,r){if(t){if("string"==typeof t)return y(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?y(t,r):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],u=i[1],c=i[2],l=i[3],h=i[4];if(null!=h&&!p.includes(h))return null;if(a!==o)return null;var d=parseInt(u,10);if(isNaN(d))return null;var v=parseInt(c,10);if(isNaN(v))return null;if(null==l||""===l)return null;var g={};return g.creationTime=v,g.payload=l,g.subdomainIndex=d,g.languageToken=h,g}(r)}function x(t,r){for(var e=window.location.hostname.split("."),n=0;n0&&void 0!==arguments[0]?arguments[0]:window.location.href,i);if(null===t&&(t=v(document.referrer,i)),null!=t&&t.length>500)return null;var r=b(a);if(null!=t){if(null==r)return x(a,t);var e=function(t,r){if(null===t||t.payload!==r){var e={};e.payload=r;var n=Date.now();return e.creationTime="number"==typeof n?n:(new Date).getTime(),e.subdomainIndex=t.subdomainIndex,e}return t}(r,t);return L(a,e)}return null!=r?L(a,r):r}function j(){var t=b(c);if(null!=t)return L(c,t);var r=E();return x(c,r)}function S(){return g(a)}function k(){return g(c)}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function P(){P=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var i=r&&r.prototype instanceof g?r:g,a=Object.create(i.prototype),u=new A(n||[]);return o(a,"_invoke",{value:S(t,e,u)}),a}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function g(){}function m(){}function w(){}var b={};l(b,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(N([])));L&&L!==e&&n.call(L,a)&&(b=L);var E=w.prototype=g.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function j(t,r){function e(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==_(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):r.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function S(r,e,n){var o=h;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=s(r,e,n);if("normal"===l.type){if(o=n.done?d:p,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=d,n.method="throw",n.arg=l.arg)}}}function k(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,k(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=s(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,v):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function I(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function T(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function N(r){if(r||""===r){var e=r[a];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),T(e),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;T(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:N(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),v}},r}function I(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function T(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){I(i,n,o,a,u,"next",t)}function u(t){I(i,n,o,a,u,"throw",t)}a(void 0)}))}}function A(){return N.apply(this,arguments)}function N(){return(N=T(P().mark((function t(){var r,e;return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!0!==(null!=window.webkit&&null!=window.webkit.messageHandlers&&null!=window.webkit.messageHandlers.browserProperties)){t.next=6;break}return t.next=4,window.webkit.messageHandlers.browserProperties.postMessage("clickID");case 4:return r=t.sent,t.abrupt("return",r);case 6:if(!0!==(n=397,o=void 0,i=void 0,a=void 0,u=void 0,c=void 0,l=void 0,o=window.navigator.userAgent,i=o.indexOf("Android")>=0,a=o.indexOf("FB_IAB")>=0,u=o.indexOf("Instagram")>=0,c=function(t){var r=0,e=t.match(/(FBAV|Instagram)[/\s](\d+)/);if(null!=e){var n=e[0].match(/(\d+)/);null!=n&&(r=parseInt(n[0],10))}return r}(o),!!(l=i&&(a||u))&&(a&&null!=n?n<=c:u&&null!=instagramVersionReq?instagramVersionReq<=c:l)&&void 0!==window.XMLHttpRequest)){t.next=12;break}return t.next=10,new Promise((function(t,r){var e=new window.XMLHttpRequest;e.open("GET","properties://browser/clickID"),e.onload=function(){e.readyState===e.DONE&&e.status>=200&&e.status<300&&e.responseText&&t(e.responseText)},e.onerror=function(){r(new Error("warning: ebp got overrides."))},e.send()}));case 10:return e=t.sent,t.abrupt("return",e);case 12:case"end":return t.stop()}var n,o,i,a,u,c,l}),t)})))).apply(this,arguments)}function G(t){return F.apply(this,arguments)}function F(){return(F=T(P().mark((function t(r){var e,n,o,i,u;return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!0===r){t.next=2;break}return t.abrupt("return",!1);case 2:if(e=!1,n=!1,o=S(),i=k(),o&&""!=o){t.next=11;break}return t.next=9,A();case 9:(u=t.sent)&&(x(a,u),e=!0);case 11:return i&&""!=i||(x(c,E()),n=!0),t.abrupt("return",e||n);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function M(t){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M(t)}function B(){B=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var i=r&&r.prototype instanceof g?r:g,a=Object.create(i.prototype),u=new I(n||[]);return o(a,"_invoke",{value:S(t,e,u)}),a}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function g(){}function m(){}function w(){}var b={};l(b,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(T([])));L&&L!==e&&n.call(L,a)&&(b=L);var E=w.prototype=g.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function j(t,r){function e(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==M(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):r.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function S(r,e,n){var o=h;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=s(r,e,n);if("normal"===l.type){if(o=n.done?d:p,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=d,n.method="throw",n.arg=l.arg)}}}function k(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,k(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=s(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,v):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function _(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(r){if(r||""===r){var e=r[a];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),P(e),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;P(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:T(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),v}},r}function D(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function R(t){var r={},e=O(t),n=j();return null!=e&&(r[u]=e),null!=n&&(r[l]=n),r}function C(t){return H.apply(this,arguments)}function H(){var t;return t=B().mark((function t(r){var e;return B().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={},O(r),j(),t.next=5,G(!0);case 5:return t.sent,e[u]=S(),e[l]=k(),t.abrupt("return",e);case 9:case"end":return t.stop()}}),t)})),H=function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){D(i,n,o,a,u,"next",t)}function u(t){D(i,n,o,a,u,"throw",t)}a(void 0)}))},H.apply(this,arguments)}return r})()));if(window.clientParamBuilder&&typeof window.clientParamBuilder.processAndCollectAllParams==="function"){window.clientParamBuilder.processAndCollectAllParams(window.location.href);}}finally{if(__hadAMD)window.define=__oldDefine;if(typeof __oldModule!=="undefined")window.module=__oldModule;if(typeof __oldExports!=="undefined")window.exports=__oldExports;}})();u.loader({"type":"script","src":u.data.base_url,"cb":null,"loc":"script","id":"utag_1054","attrs":{}});} utag.DB("send:1054:COMPLETE");}};utag.o[loader].loader.LOAD(id);}("1054","barcelo.bcom2019"));}catch(error){utag.DB(error);}